Object detection in crowded scenes using context-driven label propagation

ABSTRACT

A computer implemented method for detecting an object in a crowded scene utilizing an image capturing device. The method includes receiving an image of a predetermined area. From the image, the existence of selected portions as representing an entity of a selected class is determined. Each selected portion is assigned an initial confidence value that the selected portion is an entity representative of a selected class. Each selected portion is evaluated with each other to determine a context confidence value. The context confidence value and initial confidence value are utilized to determine which of the one or more selected portions are entities of a selected class.

BACKGROUND

The present disclosure relates to image processing for detecting selected objects in an image, and more particularly to the utilization of context-driven label propagation to identify groups of selected objects in crowded and/or cluttered scenes.

The need to detect and/or identify selected objects such as people or vehicles in images is central to a wide range of applications such as video surveillance and autonomous driving. Object detection for individuals and vehicles has been utilized in a variety of systems, including, for example, computer vision, deformable part models (DPM), poselets and deep learning. Object detection is particularly challenging when the objects in a given scene are at least partially obstructed or unclear because of a cluttered background, or because of the large number of potential pose variations.

SUMMARY

In accordance with an embodiment, a method for detecting objects in a crowded scene is provided. The method includes receiving, using a processor system, image data representing objects in a predetermined area. The processor system makes an initial determination that selected portions of the image data represent one or more entities of a predetermined class of object. An initial confidence value of the selected portions of the image data is determined wherein the initial confidence value identifies likelihood that the selected portions of the image data represent one or more of a selected class of object. A context confidence value of the selected portions of the image data is determined wherein the context confidence value identifies a contextual relationship between the selected portions of the image data. The context confidence value and the initial confidence value are utilized to determine that one of the selected portions of the image data represents an entity representative of a selected class of object.

In accordance with a further embodiment, a computer program product for detecting an object representative of a predetermined class of object in a crowded scene wherein the computer program product includes a computer readable storage medium having program instructions embodied therewith, and wherein the computer readable storage medium is not a transitory signal. The program instructions are readable by a processing circuit to cause the processing circuit to perform a method. The method includes receiving image data representing objects in a predetermined area and making an initial determination that selected portions of the image data represent one or more entities of a selected class of object. The method further includes determining an initial confidence value of the selected portions of the image data wherein the initial confidence value identifies a likelihood that the selected portions of the image data represent one or more entities of a selected class of object and utilizing the context confidence value and the initial confidence value to determine that one of the selected portions of the image data represents an entity representative of a selected class of an object.

In another embodiment of the invention, an individual identification system for detecting objects in a crowded scene utilizing an image capturing device is provided. The system includes a processor in communication with one or more types of memory and wherein the processor is configured to receive image data representing objects of a predetermined area. The processor makes an initial determination that selected portions of the image data represent one or more entities of a predetermined class of object. An initial confidence value of the selected portions of the image data is determined by the processor wherein the initial confidence value identifies a likelihood that the selected portions of the image data represents one or more entities of a selected class of object. A context confidence value of the selected portions of the image data is also determined by the processor wherein the context confidence value identifies a contextual relationship between the selected portions of the image data. The context confidence value and initial confidence value are utilized to determine that one of the selected portions of the image data represents an entity representative of a selected class of object.

BRIEF DESCRIPTION OF THE DRAWINGS

The subject matter which is regarded as the invention is particularly pointed out and distinctly claimed in the claims at the conclusion of the specification. The forgoing and other features, and advantages of the invention are apparent from the following detailed description taken in conjunction with the accompanying drawings in which:

FIG. 1 illustrates the capturing of an image and processing for determining the presence of an object according to one or more embodiments of the present disclosure;

FIG. 2 illustrates the creation of a context graph via context label propagation according to one or more embodiments of the present disclosure;

FIG. 3 is a block diagram illustrating one example of a processing system according to one or more embodiments of the present disclosure;

FIG. 4 is a flow diagram of a method of detecting objects in a crowded scene in accordance with one or more embodiments of the present disclosure;

FIG. 5 is a flow diagram of the processing of context information according to one or more embodiments of the present disclosure;

FIG. 6 is an illustration of a social context assessment in accordance with one or more embodiments of the present disclosure;

FIGS. 7a, 7b and 7c illustrate multiple iterations of context information for detecting individuals in a crowded scene in accordance with one or more embodiments of the present disclosure; and

FIG. 8 is an illustration of detections based upon multiple iterations of context information in accordance with one or more embodiments of the present disclosure.

DETAILED DESCRIPTION

Embodiments of the present disclosure present a novel image detection system for recognizing an object which represents an entity of a predetermined class of objects in crowded scenes which includes identifying the object and its contextual relationship with individuals. In exemplary embodiments, methods and system for detecting objects such as individuals in an image are provided. The systems and methods also include determining an object's context and modeling interactions between other detected objects. In a crowded scene, people usually form groups where they interact with each other, both spatially and socially. A group of people, queuing, sitting or walking together, indicate spatial closeness and similar scales. There also exists strong social patterns in the group such as facing (i.e. two people face each other) and following (e.g. people stand or sit side by side). In exemplary embodiments, methods and systems for identifying contextual cues and creating models of individuals' interactions are provided to determine if an identified object in an image is representative of an individual.

Turning now to an overview of the present disclosure, one or more embodiments provide methods, systems and computer program products for detecting objects of a predetermined class in crowded scenes by using context driven label propagation are provided. In exemplary embodiments, an image of a predetermined area is taken by an image capturing device such as a camera or video recorder. Image data representing objects is received and selected portions of the image data are evaluated for making an initial determination that the selected portions represent one or more entities of a selected class of objects. The selected portions are evaluated utilizing imaging techniques which include recognition of common components of an object of a selected class. For instance, if the desired selected class includes an individual, then facial recognition and body recognition features would be analyzed. Such techniques include deformable part models (DPM), poselets and deep learning. An additional class of object maybe a vehicle wherein recognition of a vehicle body including tires would be analyzed. For the selected portions which meet a certain threshold of having recognizable features representing an entity representative of a selected class, an initial confidence value is determined. For instance, as shown in FIGS. 1 and 2, those entities which appear to possibly represent individuals are given a score ranging from 2 to 10. In this situation, the value of 10 is the highest confidence level that the image captured is indeed an individual based upon classic imaging processing techniques. However, due to certain images being unclear, the initial confidence value of certain selected portions of image data are lower. The threshold may vary depending on the particular environment involved. For instance, in an autonomous vehicle driving scenario, the inclusion of false positives is more beneficial than incorrectly not identifying an individual or another vehicle based upon an unclear image hence the threshold for identifying an identified object based on visual recognition is low. However, in a stadium setting where the occurrence of individuals is expected, the threshold for identifying an identified object based on visual recognition could be higher. The establishment of a baseline as described is based solely on visual recognition techniques. Such a technique removes stationary objects such as trash cans and the like, but may include an object such as a statue as a false positive.

With the establishment of a baseline, the method further includes evaluating the initial confidence score by comparing the selected portion of an image with additional selected portions of the image via contextual relationships. In the exemplary embodiment, the relative contextual relationships include spatial, scale, social, and overlap. These contextual relationships are each individually evaluated with respect to an attraction attribute or a repulsion attribute. Each contextual relationship with a respective selected portion of the image is evaluated with respect to additional selected portions within a predetermined range. For example, the scale context of a particular selected portion may be evaluated with respect to those selected portions within a ten foot area, or the social context may be evaluated with respect to those selected portions within a five foot area. Each relationship is aggregated to produce a context confidence value. If the context confidence value is greater than a predetermined threshold, then the initial confidence value that a selected portion is an entity representative of a selected class may be validated. If the context confidence value is less than a predetermined threshold, then the initial confidence value that an identified object is an entity of a representative class may be seen as a false positive.

The invention focuses on post image processing to determine the presence of an entity representative of a selected class based on contextual environmental clues where such objects would not have been considered an entity representative of a selected class from prior image processing techniques due to the quality of the initial image. An embodiment of the present invention further processesvisual images for identifying an object representative of a class such as individuals via an image detector which when processed under known image processing techniques would fail to identify selected portions of an image as representing an individual. FIG. 1 illustrates a group of people in a social interaction setting as recorded by a surveillance camera. In this embodiment, the selected class of objects would include individuals. In other embodiments, the selected class of objects may include vehicles. As shown in FIG. 1, people are grouped with the two people on the left facing each other and two people on the right following or sitting side by side. Initial detections are identified as either high confidence or low confidence. As seen in FIG. 1, an initial processing of an image 200 taken by an image capturing device 302 such as a surveillance camera identifies several selected portions. Each selected portion is processed for determining the likelihood that the selected portion is an individual. As shown in FIG. 1, selected portions 102-118 are identified as potential individuals and assigned initial confidence values based upon image processing characteristics utilized for recognizing individuals such as facial and body recognition techniques which are known to those skilled in the art such as deformable part models (DPM), poselets and deep learning.

The relationship of the individuals is presented in a context graph illustrated in FIG. 2. A contextual analysis between the individuals is undertaken. A bold edge indicates a mutual attraction between two nodes, i.e. they are contextually compatible. Oppositely a dotted edge suggests an opposite relationship, i.e. repulsion. The framework applies label propagation to boost up weak detections while suppressing irrelevant false alarms.

As shown in FIG. 2, the context graph 350 captures the interaction strength between selected portions or detections. Each node in FIG. 2 represents a selected portion from FIG. 1. As shown in FIG. 1 and FIG. 2, the selected portion/node relationship is as follows:

Selected Portion Node 102 220 104 225 106 230 108 240 110 235 112 245 114 250 116 255 118 260

A context graph that incorporates contextual information available from the scene is built. The contextual information can include spatial, scale, social, and overlap cues. This contextual information is utilized for label propagation. The label propagation framework which builds the context graph spreads both positive and negative contextual potentials along edges depending on contextual attraction or repulsion; as a result, contextually compatible selected portions representing entities representative of a selected class such as an individual gets reinforced by receiving positive potentials during the propagation while false alarms are contained due to being negated by their incompatibility with true detections. This approach is illustrated in FIG. 2 which illustrates an initial scene where true “labeled” data has yet been developed and the initial context graph includes greedy-like inferences which iteratively adds the best identified object with the most potential gain as a label at each time to initialize a new round of propagation. The process repeats until convergence when no new identified object can be labeled.

As seen in FIG. 2, in the exemplary embodiment, different selected portions may initially have an initial positive confidence value based upon a positive visual recognition. However, upon processing, the context confidence value may decrease this value. In this scenario the selected portion would be deemed a false alarm. However, in other scenarios, an initial identified object may have their initial confidence value increased or remain the same, in this scenario the initial confidence value identifying that the selected portion is an individual is validated.

As illustrated in FIG. 2, a respective selected portion is evaluated with respect to multiple surrounding selected portions in order to process the context graph. The Context Graph 350 illustrates the overall confidence that a selected portion is an individual. The selected portions from FIG. 1 are identified as nodes having a respective initial confidence value. By evaluating the contextual relationships of the selected portions, a context confidence value is established. These two metrics are combined to produce an overall confidence value that the selected portion is representative of an individual. The following table reflects the attributes identified in Context Graph 350.

Initial Context Overall Node Confidence Value Confidence Value Confidence 220 3 −6 −3 225 10 0 10 230 1.5 0 1.5 235 2 −6 −4 240 5 2 7 245 5 −3 −2.5 250 2.5 1.5 4 255 2 −4 −2 260 1.5 1 2.5

The building of the contextual graph involves several steps. In an exemplary embodiment, given an image, let X={x_(i), i=1:m} be a set of m selected portions generated by an underlying people detector such as visual recognition instructions. The detection threshold is variable and in some exemplary embodiments is purposely set to a low detection threshold to allow for more true detections in X, which unfortunately also gets many more undesirable false alarms. Therefore, the task is to find a subset of X that covers as many as possible true detections, meanwhile with the fewest false alarms brought in. Mathematically, an indicator vector is sought where Y={y₁, y₂, . . . , y_(m)}Tε{0, 1} (1 means true people detection otherwise background) that maximizes a potential function Ψ(X, Y), such that the visual detections agree on the contextual setting of the image. Equation 1 defines the potential function as follows:

${\Psi \left( {,Y} \right)} = {{\sum\limits_{i = 1}^{m}\; {y_{i}{\psi^{u}\left( x_{i} \right)}}} + {\alpha {\sum\limits_{i = 1}^{m}\; {y_{i}{\psi^{c}\left( {x_{i},,Y} \right)}}}}}$

where ψ^(u)(•) is the unary potential that utilizes the original detection score of a selected portion. ψ^(c)(•) represents the total contextual potentials of an object received from others. α is a constant number balancing these two terms. A model of the contextual interaction between any two selected portions is developed via a context graph G. Thus producing equation 2 ψ^(c)(x_(i),

, Y)

(x_(i), Y) where ψ^(G) (xi, X, Y) measures how much contextual potential identified object x_(i) can be obtained from validated selected portions (reflected by Y) based on G.

A context graph is created that is an undirected graph G=(V, E) used for label propagation where V corresponds to a set of selected portions and E indicates the strength of contextual interactions between each pair of selected portions. While the focus is to reward selected portions which are contextually consistent to true detections, suppressing false alarms is equally important during label propagation as the input initially contains substantial errors. Accordingly, two types of strengths are considered; attraction e+ and a repulsion e− when constructing the contextual graph G. Attraction measures contextual compatibility between two identified entities while repulsion relates to contextual inconsistencies. In an exemplary embodiment, four types of contextual cues are utilized. These are namely scale, spatial, overlap and social of which their attraction strengths are denoted as e+ scale, e+ spatial, e+ overlap, and e+ social. Similarly three types of cues are utilized in evaluation repulsion. These include scale, spatial and overlap with their respective repulsion strengths denoted as e-scale, e-spatial and e-overlap.

The respective context features are mapped to a number between 0 and 1 to indicate the strength of the contextual interaction. Spatial context is explored by the image distance d (x_(i), x_(j)) between two selected portions. To eliminate the effects of image resolution and camera perspective, d (xi, xj) is further normalized as follows:

${f_{sp}\left( {x_{i},x_{j}} \right)} = {\frac{2\; {d\left( {x_{i}x_{j}} \right)}}{h_{i} + h_{j}} \cdot {{\min \left( {\frac{h_{i}}{h_{j}},\frac{h_{j}}{h_{i}}} \right)}.}}$

where h_(i) and h_(j) are the image heights of the selected portions x_(i) and x_(j). The ratio h_(i)/h_(j) compensates camera perspective as this ratio can reflect the depth change of the two selected portions. The minimum operation is utilized to obtain symmetric feature. The sum h_(i) and h_(j) further normalizes the distance into the unit of human height. Scale context is evaluated by the physical height ratio of two selected portions. Initially an estimate is made of the image location of a horizon line v_(o). By assuming that all selected portions are all grounded and upright, the physical height of identified object x_(i) is defined as follows:

ζ_(i) =h _(i)ζ_(c) /v _(i) −v _(o)

Where h_(i) and v_(i) encode the physical height and image locator of x_(i) respectively. ζc is the camera height. Consequently, given any two detections, a value pair is obtained (v|₀(h_(i)−h_(j)), h_(i)v_(j)−h_(j)v_(j)).

With multiple (≧3) strong detections (i.e. high confidence), v₀ can easily be estimated by least square fitting. The physical height ratio of two selected portions can then be defined as:

${f_{sc}\left( {x_{i},x_{j}} \right)} = {\min \left( {\frac{h_{i}\left( {v_{j} - v_{o}} \right)}{h_{j}\left( {v_{i} - v_{0}} \right)},\frac{h_{j}\left( {v_{i} - v_{o}} \right)}{h_{i}\left( {v_{j} - v_{0}} \right)}} \right)}$

The minimum is used for feature symmetry. In operation, if the height of a standing selected portion is 1, a sitting identified object is regarded as 0.75 height.

Social context is an attribute which reflects social interactions between two detections measured in virtue of pose and body (or head) orientation. A pose classifier (standing or sitting) was designated as RBF-kernel SVM with 1200-dim poselet activation vector (PAV). The 2-dim probability output p of this classifier is then used to evaluate pose similarity. Body orientations indicate the position of co-existing true detections. In the exemplary embodiment, two orientation patterns are modeled, namely following and facing.

FIG. 6 illustrates the concepts of following and facing. A small ∠θ, i.e. included angle of body orientations, indicates a following pattern, while ∠θ₁ and ∠θ₂ when both being small, exhibit a facing pattern. The strongest orientation pattern is used, thus producing

∫so=min(∠θ,max(∠θ1 and ∠θ2))*|p ₁ −p ₂|₂.

Overlap context utilizes the overlap ratio of two bounding boxes to express location compatibility of two selected portions, i.e., f_(ov)=(B_(i)∩B_(j)/(B_(i)∪B_(j)), where B_(i) and B₃ are bounding boxes of x_(i) and x_(j), respectively. If the ratio is of a certain threshold, then it is determined that the selected portions are actually indicative of only one individual.

A data driven approach is utilized to learn a mapping function F: f→e for each of the contextual pattern, using 120 images from Structured Group Dataset SGD that are independent from the evaluation subset. Gaussian kernels are utilized to model mapping functions F. Parameters of these Gaussian functions are estimated by fitting the distributions of the respective context patterns. Spatial attraction e_(sp)+ is modeled as a 2-component Gaussian kernel, which corresponds to a maximum influence around 0.3 human height and vanishes after 1.5. e_(sp) ⁻=1 when F_(sp)<0.1. For e_(sc)+, a Gaussian function in the range of |0, 0.8| is fit. To counteract height differences of individuals and mild errors of bounding boxes, e_(sc)+ is set to =1 when F_(sc)ε|0.8, 1|, e_(ov)+, e_(ov) ⁻, and e_(so)+ are done in a similar way.

The scale and overlap contexts are deductive patterns, i.e. they are discriminative to tell whether an identified object is true or not. For instance, if a identified object goes against true detections with regard to scale (small e_(sc)+), then a strong repulsion should be given (large e_(sc) ⁻). Thus e_(sc)−=1−e_(sc)+ and e_(ov) ⁻=1−e_(ov)+. In opposite, spatial and social cues are not deductive as it cannot be inferred whether or not a hypotheses is invalid, even if it is remote from true detections or no social interactions are observed.

Given a context graph G, the contextual potential)

(x_(i), Y) (iε[1:

) is obtained. An initial potential vector ZεR^(m) is initialized as Y where YεR^(m) for m selected portions. If the contextual potential of a selected portion x_(i) is targeted z_(i) is set to =0 to avoid self-reinforcement. Under such a setting, a selected portion x_(i) is labeled when y_(i)≠0 and unlabeled otherwise. As aforementioned, strong true detections is more robust in propagating potential, therefore G is reweighted. Logistic regression is applied to normalize unary

(x_(j))(jε[1:m]) into w_(j)ε(0, 1) which can be regarded as the true detection probability of selected portion x_(j); w_(j) is set to =1 if y_(j)=1, since y_(j)=1 means validated true detection. Then each column of G is re-weighted by w_(j), i.e., G′.j=_(wj), G.j. Matrix G′ is further row-normalized such that

=

/Σ_(k)

|, which is critical for the convergence of the propagation algorithm. The potential propagation algorithm in Algorithm. 1 is as follows:

Algorithm 1 Potential propagation for ψ^(G) (x_(i),Y)  1: Input: given G, Y.  2: Output: ψ^(G) (x_(i), Y)  3: Initialize Z = Y, z_(i) = 0  4: Obtain G by re-weighting and row-normalization  5: while Z does not converge do  6: Z ← GZ  7: Z = max (Z, 0)  8: ∀ _(j) ∈ [1 : m], j ≠ i, if yj = 1, zj = 1,  9: end while 10: ψ^(G)(x_(i), Y) ← GZ

In line 6, potential is progagated based on G and the potential vector Z in previous iteration. In line 7, all negative elements are reset in potential vector Z back to zero in order to cut off the potential defused by false alarms as the identification of an object as an individual is a true detection or a false alarm. In line 8, elements are replenished with the initial value 1. The propagation algorithm repeats from line 6 to line 8 until Z coverages. One more propagation is executed in line 10, in order to output the ψ^(G) (x_(i), Y) with both positive and negative contextual potential.

Considering contextual potential ψ^(G) (x_(i), Y), optimizing the objective function in Equation 1 is NP hard. The proposed potential propagation algorithm is combined with a forward search, aiming at a sub-optimal Ŷ=max_(y) ψ(X, Y). Different from conventional graph-based propagation with fixed “labeled” instances, unconfirmed selected portions are progressively validated and propagate their potential in next run. Let S′={i|y_(i)=1, iε[1:m]} denote the confirmed set of selected portions at t iteration. The potential change by instancing selected portions x_(i) is defined as follows:

${\Delta \left( x_{i} \right)} = {{{\Psi \left( {,{Y\left( {S^{t}\bigcup i} \right)}} \right)} - {\Psi \left( {,{Y\left( S^{t} \right)}} \right)}} = {{\psi^{u}\left( x_{i} \right)} + {\alpha\left( {{\psi^{}\left( {x_{i},{Y\left( S^{t} \right)}} \right)} + {\sum\limits_{j \in S^{t}}\; {\psi^{}\left( {x_{j},{1(i)}} \right)}}} \right)}}}$

where ψ^(u)(x_(i)) is the unary potential: ψ^(G) (x_(i), Y (S^(t))) measures the contextual potential identified object x_(i) obtains from instanced identified object in S^(t); Y (St) is the label vector that y_(k)=1, if kεS^(t) and 0 otherwise; ΣjεS^(t)ψg (x_(j), 1(i)) represents potentials that identified object imposes onto instances(s) in S^(t), where 1 (i) is an indicator vector with only ith element equals 1 and others are 0s. The progressive inference algorithm is as follows:

Algorithm 2 Progressive inference for Ŷ, Ŝ  1: Input: given G, X.  2: Output: Ŷ, Ŝ  3: Initialize Y = 0 and S^(o)= Ø  4: First instance i* = arg maxi ψ^(u) (x_(i)), set S¹ = {i*}.  5: while Δ(x_(i)) > 0 do  6: ∀i ∈ [1 : m], y_(i) ≠1, i* = arg max_(i) Δ (x_(i),)(Alg.1)  7: Update Y: y_(i*) = 1 i*  8: S^(t+1) ← S^(t) ∪  9: t + 1 ← t 10:  end while 11: Ŷ, ← Y, Ŝ ← S^(t)

The progressive inference algorithm starts with an empty set S and a zero vector Y. The first selected portion is selected according to unary potential only. During each iteration, one unconfirmed selected portion is evaluated with the largest potential change Δ(x_(i)) and updates S^(t) and Y accordingly. Algorithm 2 runs line 6 to 9 repetitively and instance one selected portion in each iteration, until adding any other detections could not enhance the total potential ψ(X, Y). Obviously, by growing S^(t) alternatively, contextual potentials from true detections are progressively propagated. When the algorithm ceases, the selected portions in Ŝ are regarded as true detections while others are declared false alarms. All detections are summed by their unary and contextual potentials, i.e.,

ψ′(x _(i))=ψ^(u)(x _(i))+α(ψG(xi,Ŷ)+(_(jεSt) ^(Σ) ψG(xj,1(i))

where ψ′(x_(i)) could be positive or negative. After rescoring, value 0 is further used as the cutoff threshold to differentiate true detections and false alarms.

Referring to FIG. 3, there is shown an embodiment of a processing system 100 for implementing the teachings herein. In this embodiment, the system 100 has one or more central processing units (processors) 101 a, 101 b, 101 c, etc. (collectively or generically referred to as processor(s) 101). In one embodiment, each processor 101 may include a reduced instruction set computer (RISC) microprocessor. Processors 101 are coupled to system memory 114 and various other components via a system bus 113. Read only memory (ROM) 102 is coupled to the system bus 113 and may include a basic input/output system (BIOS), which controls certain basic functions of system 100.

FIG. 3 further depicts an input/output (I/O) adapter 107 and a network adapter 106 coupled to the system bus 113. I/O adapter 107 may be a small computer system interface (SCSI) adapter that communicates with a hard disk 103 and/or tape storage drive 105 or any other similar component. I/O adapter 107, hard disk 103, and tape storage device 105 are collectively referred to herein as mass storage 104. Operating system 120 for execution on the processing system 100 may be stored in mass storage 104. A network adapter 106 interconnects bus 113 with an outside network 116 enabling data processing system 100 to communicate with other such systems. A screen (e.g., a display monitor) 115 is connected to system bus 113 by display adaptor 112, which may include a graphics adapter to improve the performance of graphics intensive applications and a video controller. In one embodiment, adapters 107, 106, and 112 may be connected to one or more I/O busses that are connected to system bus 113 via an intermediate bus bridge (not shown). Suitable I/O buses for connecting peripheral devices such as hard disk controllers, network adapters, and graphics adapters typically include common protocols, such as the Peripheral Component Interconnect (PCI). Additional input/output devices are shown as connected to system bus 113 via user interface adapter 108 and display adapter 112. A keyboard 109, mouse 110, and speaker 111 all interconnected to bus 113 via user interface adapter 108, which may include, for example, a Super I/O chip integrating multiple device adapters into a single integrated circuit.

In exemplary embodiments, the processing system 100 includes a graphics processing unit 130. Graphics processing unit 130 is a specialized electronic circuit designed to manipulate and alter memory to accelerate the creation of images in a frame buffer intended for output to a display. In general, graphics processing unit 130 is very efficient at manipulating computer graphics and image processing, and has a highly parallel structure that makes it more effective than general-purpose CPUs for algorithms where processing of large blocks of data is done in parallel.

Thus, as configured in FIG. 3, the system 100 includes processing capability in the form of processors 101, storage capability including system memory 114 and mass storage 104, input means such as keyboard 109 and mouse 110, and output capability including speaker 111 and display 115. In one embodiment, a portion of system memory 114 and mass storage 104 collectively store an operating system to coordinate the functions of the various components shown in FIG. 3.

As seen in FIG. 4, in the exemplary method, an image is captured and processed at block 400. Once captured, the image is processed by a processor utilizing visual recognition parameters to determine if a selected portion is potentially representative of an entity of a predetermined class of an object. The class may include a vehicle or an individual or any object which may be classified via image processing. In the embodiment shown in FIG. 4, an individual is the entity which is being evaluated. The selected portions are each evaluated to determine if they potentially represent an individual and are assigned an initial confidence value, as shown at block 410. If the selected portion has an initial confidence value greater than a threshold, then the selected portion is evaluated with respect to contextual relationships with other selected portions, as shown at block 420. Next, as shown at block 430, based upon the contextual relationships, a context graph is built and a context confidence value is established for each selected portion. As shown at block 440, the selected portion's initial confidence value is updated with the context confidence value and instructions are provided accordingly. For instance, if the scenario involves an autonomous vehicle, then the instructions may require that the vehicle stop, change paths, slow down, or continue on. If the scenario involves a security surveillance setting, then the future actions may include further surveillance, the manipulation of a camera or the dispatching of officials to the area.

As shown in FIG. 5, the method of developing a context graph 500 is illustrated. For each selected portion, a contextual relationship is undertaken with other selected portions for determining a context confidence value. In the exemplary embodiment, the context confidence value is developed utilizing four distinct contexts. These contexts are as follows: Spatial, Scale, Social and Overlap. Each context has an attraction component and Spatial, Scale and Overlap have a repulsion component. As illustrated in FIG. 5, the Spatial Context Attraction is determined at step 510, and a Spatial Context Repulsion is determined at step 520. The Scale Context Attraction is determined at step 530 and the Scale Context Repulsion is determined at step 540. The Social Context Attraction is determined at step 550. The Overlap Context Attraction is determined at Step 560. The Overlap Context Repulsion is determined at Step 570. These steps are repeated for a particular selected portion with respect to other selected portions previously determined to exist. From the plurality of respective attractions and repulsions a context confidence value is created at step 580.

FIG. 6 illustrates the social context. Each circle represents one selected portion. The arrows illustrate the body or head orientations. Two kinds of social patterns are modeled, following or facing, which is indicated by their respective body or head orientations. As shown in FIG. 6, the orientation of the head of an identified object 700 is compared in relationship with the head of an identified object 710. Due to the orientation, these entities are considered “following” each other. The orientation of the head of an identified object 720 is compared in relationship with the head of an identified object 730. Due to orientation, these entities are considered “facing” each other. The relationship of selected portions 740 and 750 is designated as following as their orientation has them looking at the same area.

In certain circumstances FIG. 7 illustrates the label propagation with respect to the contexts of individuals. As shown in FIG. 7, several iterations of determining the respective context attractions and repulsions are conducted in order to build the context graph. In the exemplary embodiment provided, as shown in FIG. 7a , an initial image is processed a first time to depict several selected portions 710-780. Of these selected portions, selected portion 720 is the clearest image of an individual and receives a high initial confidence value that the object is an individual. Utilizing 720 as a high confidence node, a second iteration of the contexts is conducted in FIG. 7b . As shown in FIG. 7b , based on the contexts, selected portion 760 receives a high context confidence value and is also identified as an individual. A third context iteration is conducted and with the high confidence of individuals 720 and 760, selected portion 730 receives a high context confidence factor and is identified as an individual. From these respective individual nodes, the remaining selected portions 710, 740, 750, 770 and 780 are also evaluated with respect to each other in propagating a context graph. As shown in FIG. 8, the selected portions 710 through 780 are each identified as an individual whereas many of these selected portions were not clearly representative of an individual from the initial image shown in FIG. 7 a.

As can be seen from the detailed description and accompanying drawings, one or more embodiments of the present disclosure provide technical effects and benefits, which include identifying with confidence individuals from initial selected portions by utilizing context based post processing techniques on opaque images which typically are not identified utilizing standard image processing procedures. By utilizing post processing techniques utilizing context based clues, more individuals may be identified in certain situations where previously such individuals would be discounted. The increase in individual identification has benefits in areas such as autonomous vehicle environments for detecting potential individuals in the path of the vehicle, and in crowd surveillance for identifying individuals who may be attempting to hide their presence, or in situations where individuals exhibit unusually social behavior. Embodiment of the present disclosure may be implemented as a computer readable storage medium. The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.

Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.

Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++ or the like, and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present invention.

Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.

These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.

The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.

The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions. 

What is claimed is:
 1. A computer implemented method for detecting an object in a scene, the method comprising: receiving, using a processor system, image data representing objects of a predetermined area; making an initial determination, using the processor system, that selected portions of the image data represent one or more entities of a selected class; determining an initial confidence value of the selected portions of the image data, wherein the initial confidence value identifies a likelihood that the selected portions of the image data represent one or more entities of a selected class; determining a context confidence value of the selected portions of the image data, wherein the context confidence value identifies a contextual relationship between the selected portions of the image data; and utilizing said context confidence value and said initial confidence value to determine that one of the selected portions of the image data represents an entity of a selected class.
 2. The computer implemented method of claim 1 wherein said step of making an initial determination that selected portions of the image data represent an entity of a selected task includes utilizing facial recognition attributes and assigning a confidence value based upon said facial recognition attributes that said entity is an individual.
 3. The computer implemented method of claim 2 wherein said initial confidence value includes a threshold value being assigned correlating to the selected portions of the image data representing one or more selected entities and wherein if said initial confidence value is beneath said threshold value said selected portion is deemed not being an entity of a selected class and is not included in the evaluation of other selected portions of the image data.
 4. The computer implemented method of claim 1 wherein a selected portion of image data is compared to another selected portion of image data via a scale context and said scale context compares the height of a first identified object with a second identified object.
 5. The computer implemented method of claim 1 wherein a selected portion of image data is compared to another selected portion of image data via a spatial context wherein the spatial distance between two selected portions selected portions is calculated.
 6. The computer implemented method of claim 1 wherein a selected portion of image data is compared to another selected portion of image data via a social context wherein the social context measures the relationship of pose and body orientations to determine if a selected portion of image data is facing or following another selected portion of image data.
 7. The computer implemented method of claim 1 wherein an image boundary of a selected portion is compared to an image boundary of an adjacent selected portion for determining if an overlap context exists such that the two selected portions are determined to be representative of the same individual.
 8. The computer implemented method of claim 1 wherein an identified object is compared to another identified object via a scale context and said scale context compares the height of a first identified object with a second identified object, via a spatial context wherein the spatial distance between two identified object is calculated, via a social context wherein the social context measures the relationship of pose and body orientations to determine if a identified object is facing or following another identified object and providing an aggregate context confidence value.
 9. The computer implemented method of claim 8 wherein said spatial, scale, overlap and social contexts include an attraction component and said spatial, overlap and scale contexts include a repulsion component, said aggregate context confidence value being comprised of the spatial, scale, overlap and social attraction components and said spatial overlap and scale repulsion components with respect to a respective selected portion in relation to additional selected portions within an image.
 10. The computer implemented method of claim 9 wherein a selected portion of an image is deemed not to be an individual if said aggregate context confidence value is less than a threshold.
 11. The computer implemented method of claim 9 further including moving a camera to capture an additional image based upon the detection of an individual at an outer boundary of said initial image capture.
 12. The computer implemented method of claim 11 further including moving a camera to zoom into a specific selected portion of the image if a respective context indicates unusual behavior.
 13. A computer program product for detecting individuals in a crowded scene, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, wherein the computer readable storage medium is not a transitory signal per se, the program instructions readable by a processing circuit to cause the processing circuit to perform a method comprising: receiving image data representing objects of a predetermined area; making an initial determination, that selected portions of the image data represent one or more entities of a selected class; determining an initial confidence value of selected portions of the image data, wherein the initial confidence value identifies a likelihood that the selected portions of the image data represent one or more entities of a selected class; utilizing said context confidence value and said initial confidence value to determine that one of the selected portions of the image data represents an entity of a selected class.
 14. The computer program product of claim 13 wherein said step of making an initial determination that selected portions of the image data represent one or more entities of a selected class includes utilizing facial recognition attributes and assigning a confidence value based upon said facial recognition attributes that said entity is an individual.
 15. The computer program product of claim 14 wherein a selected portion of image data is compared to another selected portion of image data via a scale context and said scale context compares the height of a first identified object with a second identified object, via a spatial context wherein the spatial distance between two selected portions is calculated, via a social context wherein the social context measures the relationship of pose and body orientations to determine if a selected portion is facing or following another selected portion and providing an aggregate context confidence value.
 16. The computer program product of claim 14 wherein said spatial, scale, overlap and social contexts include an attraction component and said spatial, overlap and scale contexts include a repulsion component, said aggregate context confidence value being comprised of the spatial, scale, overlap and social attraction components and said spatial overlap and scale repulsion components with respect to a respective selected portion of image data in relation to an additional selected portion of image data within an image.
 17. The computer program product of claim 14 wherein a selected portion of image data is deemed not to be an individual if said aggregate context confidence value is less than a threshold.
 18. An individual detection system for detecting individuals in a crowded scene utilizing an image capturing device, the detection system comprising: a processor in communication with one or more types of memory, the processor configured to: receive an image data representing objects of a predetermined area; making an initial determination that selected portions of the image data represent one or more individuals; determining an initial confidence value of the selected portions of the image data, wherein the initial confidence value identifies a likelihood that the selected portions of the image data represents one or more individuals; determining a context confidence value of the selected portions of the image data, wherein the context confidence value identifies a contextual relationship between the selected portions of the image data; and utilizing said context confidence value and said initial confidence value to determine that one of the selected portions of the image data represents a selected portions individual.
 19. The detection system of claim 18 wherein said processor is further configured to determine an overall context confidence value by comparing a identified object with another identified object via a scale context and said scale context compares the height of a first identified object with a second identified object, via a spatial context wherein the spatial distance between two identified object is calculated, via a social context wherein the social context measures the relationship of pose and body orientations to determine if a identified object is facing or following another identified object and providing an aggregate context confidence value.
 20. The detection system of claim 19 wherein said processor is further configured to manipulate a camera depending on the value of a certain context confidence value with respect to a respective selected portion. 